package com.model.proxy
{
	import com.ApplicationFacade;
	

	import org.puremvc.as3.multicore.utilities.statemachine.StateMachine;
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.proxy.Proxy;

	public class FormSaveFake extends Proxy implements IProxy
	{
		public static const NAME:String='FormSaveFake';

		public function FormSaveFake()
		{
			super(NAME);
		}

		public function saveData(argumentList:Array):void
		{
			getFakeResult(argumentList);
		}
		private function getFakeResult(argumentList:Array):void{
			var res:String="";
			for(var s:String in argumentList){
				for(var t:String in argumentList[s]){
					res+=t+": "+argumentList[s][t]+"\n";
				}
			}
			res+="successfully  saved.";
			sendNotification(StateMachine.ACTION, res, ApplicationFacade.SAVED);
		}	
	}
}